package com.example.springdemo.utils.sftp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhangding
 * @description sftp连接工厂
 * @create 2021-09-14 10:48
 **/

@Component
public class FtpConnectionFactory {
    @Autowired
    private SftpProperties sftpProperties;
    public SftpConnection getConnection(){
        return new SftpConnection(sftpProperties);
    }
}
